package com.yanfan.controller;


import com.yanfan.common.core.controller.BaseController;
import com.yanfan.common.core.page.TableDataInfo;
import com.yanfan.entity.IbmsRequestLogs;
import com.yanfan.service.IbmsRequestLogsService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author songchi
 * @since 2024-09-10
 */


@Api(tags = "运维监控模块")
@RestController
@RequestMapping("/operations/record")
public class RequestLogsController extends BaseController {
    @Resource
    private IbmsRequestLogsService ibmsRequestLogsService;


    /**
     * 接口调用日志
     *
     * @return
     */
    @ApiOperation("接口调用日志")
    @PreAuthorize("@ss.hasPermi('operations:record:list')")
    @GetMapping("/list")
    public TableDataInfo queryPageList() {
        startPage();
        List<IbmsRequestLogs> list = ibmsRequestLogsService.queryPageList();
        return getDataTable(list);
    }
}

